package cn.chencaiju.exam.oop;

import org.junit.Test;

public class BookTest {
	@Test public void  testBook() {
		Book b1=new Book("1234","三国演义",99);
		Book b2=new Book("1235","水浒传",88);
		Book b3=new Book("1236","射雕英雄传",66);
		if(b1.getPrice()<b2.getPrice()) {
			if(b2.getPrice()>b3.getPrice()) {
				System.out.println(b2.toString());
			}else {
				System.out.println(b3.toString());
			}
		}else {
			if(b1.getPrice()>b3.getPrice()) {
				System.out.println(b1.toString());
			}else {
				System.out.println(b3.toString());
			}
		}
	}

}
